package cn.service.app_info;

import cn.pojo.App_info;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface App_infoService {
    //按条件查询
    List<App_info> getAppInfoList(@Param("softwareName") String querySoftwareName,
                                  @Param("status") Integer queryStatus,
                                  @Param("categoryLevel1") Integer queryCategoryLevel1,
                                  @Param("categoryLevel2") Integer queryCategoryLevel2,
                                  @Param("categoryLevel3") Integer queryCategoryLevel3,
                                  @Param("flatformId") Integer queryFlatformId,
                                  @Param("devId") Integer devId,
                                  @Param("pageIndex") Integer pageIndex,
                                  @Param("pageSize") Integer pageSize);


    int getAppInfoCount(@Param("softwareName") String querySoftwareName,
                        @Param("status") Integer queryStatus,
                        @Param("categoryLevel1") Integer queryCategoryLevel1,
                        @Param("categoryLevel2") Integer queryCategoryLevel2,
                        @Param("categoryLevel3") Integer queryCategoryLevel3,
                        @Param("flatformId") Integer queryFlatformId,
                        @Param("devId") Integer devId);

    List<App_info>list();//查询所有

    int apkName(@Param("APKName")String APKName);//ajax异步查询APKName

    //添加
    int addApp_info(App_info app_info);


    //根据id查询信息
    App_info getAPP_infoById(@Param("id")Integer id);


    //修改
    int change(App_info app_info);

    //删除
    int del(@Param("id")Integer id);
}
